package udpInvoker.test;



import java.util.ArrayList;
import java.util.Collections;

import udpInvoker.main.lib.Invokable;
/**
 * Created by IntelliJ IDEA.
 * User: esr
 * Date: 08.okt.2008
 * Time: 16:54:39
 * Copyright 2008  Espen Skjervold, FFI
 */
public class MyInvokable extends Invokable {


     public Integer add(Integer i1, Integer i2) {
        return i1 + i2;
    }

    

    public MyInvokable() {
                       

    }

    public MyInvokable(String password) {

        setPassword(password);

    }




     public Double multiply(Double i1, Double i2) {
        return i1 * i2;
    }

    public Double divide(Double i1, Double i2) throws Exception{


        return i1 / i2;
     }


    public ArrayList sort(ArrayList list) {

        System.out.println("invoked!");

        Collections.sort(list);

        return list;
    }

}
